﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace God.ShoppingWebApi.Entities
{
   public class RolePermission : AuditedEntity<Guid>
    {
        
        /// <summary>
        /// 权限Id
        /// </summary>
        public int PermissionId { get; set; }
        /// <summary>
        /// 角色Id
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Create_time { get; set; }



        public RolePermission()
        {

        }

        public RolePermission(Guid cid,int roleId, int permissionId, DateTime create_time, Guid? lastfierId)
        {
            Id = cid;
            RoleId = roleId;
            PermissionId = permissionId;
            Create_time = create_time;
            LastModificationTime = DateTime.Now;
            CreationTime = DateTime.Now;
            CreatorId = lastfierId;
            LastModifierId = lastfierId;
        }

    
    }
}
